package com.roden.ice.client;

import com.roden.slice.HelloWorldPrx;
import com.roden.slice.HelloWorldPrxHelper;

public class ClientTest {
	public static void main(String[] args) {

		Ice.Communicator ic = null;

		ic = Ice.Util.initialize(args);

		Ice.ObjectPrx base = ic.stringToProxy("HelloWordldService:default -h 127.0.0.1 -p 1888");

		HelloWorldPrx helloworld = HelloWorldPrxHelper.checkedCast(base);

		String s = helloworld.sayHello("huilian");

		System.out.println(s);
	}
}
